<style>
.fe-floatright-bottom .icon {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    color: #fff;
    line-height: 1.6rem;
}
</style>
<div class='fui-page fui-page-current'>
	<div class='fui-content'>
			<div ng-if="!pagedata.post.id" class="fui-tab fui-tab-danger">
				<a ng-class="{'external active':pagedata.post.type == '0'}" href="javascript:" ng-click="pagedata.post.type='0';">出帐</a>
				<a ng-class="{'external active':pagedata.post.type == '1'}" href="javascript:" ng-click="pagedata.post.type='1';">进帐</a>
			</div>
			<div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem;padding-top:0.5rem;">
				<div class='fui-cell-title c'>您正在【{{pagedata.post.type != '1'?'出帐':'进帐'}}】操作
				</div>
				<div class='fui-cell'>
					<div class="fui-cell-info">
						<span ng-repeat="item in pagedata.groups" ng-if="pagedata.post.type==item.type" ng-class="{'jylabels jylabel-red-bg':1,'active':pagedata.post.groupid==item.id}" style="line-height:0.8rem;padding: 0.1rem 0.6rem;" ng-click="pagedata.post.groupid=item.id">
						{{item.title}}
						</span>
					</div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;'><i class="icon icon-jianzhi" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'>
						<input class="weui_input" type="date" ng-model="pagedata.post.days" placeholder="请选择日期">
					</div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;'><i class="icon icon-jizhang" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="金额" ng-model="pagedata.post.fee"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;'><i class="icon icon-shuru"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="描述" ng-model="pagedata.post.desc"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;" ng-click="post(pagedata.post,'post')">确认提交</a>
			</div>
	</div>
</div>
<script>
scope.pagedata.post.days=new Date(scope.pagedata.post.days);
</script>